package model;

public class Vip extends Account{
    /**
     * 会员
     */
    private String name;    //姓名
    private int point;    //积分
    private double money;   //余额
    private Level level;    //会员等级

    public Vip(String phone, String password, String name,Level level) {
        super(phone,password);
        this.name = name;
        this.level = level;
    }
    public Vip(String phone,String password,String name) {
        super(phone,password);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    public String toString(){
        return "会员电话:" + getPhone() +
                ",密码: ******" +
                ",会员姓名:" + name +
                ",积分:" + point +
                ",余额:" + money +
                ",会员等级:" + level ;

    }
}
